-- GENERATED SPELL FOR [Anubisath Warrior] --


function spell0_15537(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_15537', 546, 1)
end

function spell1_15537(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(15550,pUnit)
pUnit:RegisterEvent('Sorts_15537', 652, 1)
end

function spell2_15537(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15537', 641, 1)
end

function Sorts_15537(pUnit, Event)
local choix_sorts_15537 = math.random(0, 2)
if choix_sorts_15537 == 0 then
pUnit:RegisterEvent('spell0_15537', 1, 1)
end
if choix_sorts_15537 == 1 then
pUnit:RegisterEvent('spell1_15537', 1, 1)
end
if choix_sorts_15537 == 2 then
pUnit:RegisterEvent('spell2_15537', 1, 1)
end
end

function mob15537_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15537', math.random(1500, 3000), 1)
end

function mob15537_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15537_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15537_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15537, 1, 'mob15537_Action')
RegisterUnitEvent(15537, 2, 'mob15537_Leave')
RegisterUnitEvent(15537, 3, 'mob15537_Kill')
RegisterUnitEvent(15537, 4, 'mob15537_Die')
